package com.twang.stock.mapper;

import com.twang.stock.entity.ThsReDianStock;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ThsReDianStockMapper extends Mapper<ThsReDianStock> {

    List<ThsReDianStock> selectOneHourData();

    List<ThsReDianStock> select24HourData();

    List<ThsReDianStock> selectByCode(@Param("code")String code,@Param("type") String type);

    void batchInsertStocks(@Param("list") List<ThsReDianStock> stocks);
    void batchUpdateStocks(@Param("list") List<ThsReDianStock> stocks);

}
